package exercise3;
import javax.swing.JOptionPane;
public class Cycle {
	public static void printCycle() {
		int num=6;
		StringBuilder str=new StringBuilder();
		while(num>0) {
			for(int i=1;i<=num;i++) {
				str.append(String.valueOf(i));
				str.append(" ");
			}
			str.append("\n");
			num--;
		}
		JOptionPane.showMessageDialog(null,str.toString());
	}
}
